from otree.api import * doc = """ Your app description """ class Constants(BaseConstants): name_in_url = 'survey1' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): age = models.IntergerField( min = 0, max= 120 ) gender = models.IntergerField( choices = [ [0,"Male"], [1,"Female"] ], widget= widgets.RadioSelect ) student = models.IntergerField( choices=[ [0, "Student"], [1, "Non-Student"] ], widget=widgets.RadioSelect ) occupation = model.StringField() nationality = model.StringField() trust = models.IntergerField( choices=[ [0, "Most people can be trusted"], [1, "Cannot be too careful"], [2, "I do not know"] ], widget=widgets.RadioSelect ) # PAGES class Welcome(Page): pass class Survey(WaitPage): form_model= "player" form_fields = ["age","gender","student","occuption","nationality","trust"] class Thanks(Page): pass page_sequence = [Welcome, Survey, Thanks]